package com.xqls.server.netty.future;


import com.xqls.server.dto.SoketCommonDto;

import java.util.concurrent.Future;

/**
 * @author lubycoder@163.com
 */
public interface WriteFuture<T> extends Future<T>{


    Throwable cause();

    void setCause(Throwable cause);

    boolean isWriteSuccess();

    void setWriteResult(boolean result);

    String requestId();

    T response();

    void setResponse(SoketCommonDto response);

    boolean isTimeout();
}
